package com.ljq;

public abstract class Creature {
    private String id;
    private int hp;
    private int CE;
    private String description;
    //private Room currentRoom;
    private Article currentArticle;
    public abstract void useArticle(Article article,Creature creature);

    public int currentHp(Creature do_Creature, Creature targetCreature){
        targetCreature.hp=targetCreature.hp-do_Creature.CE;
        return targetCreature.hp;
    }

    public abstract void setCurrentRoom();

    public Creature() {
    }

    public Creature(String id, int hp, int CE, String description) {
        this.id = id;
        this.hp = hp;
        this.CE = CE;
        this.description = description;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }

    public int getCE() {
        return CE;
    }

    public void setCE(int CE) {
        this.CE = CE;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

//    public Room getCurrentRoom() {
//        return currentRoom;
//    }
//
//    public void setCurrentRoom(Room currentRoom) {
//        this.currentRoom = currentRoom;
//    }

    public Article getCurrentArticle() {
        return currentArticle;
    }

    public void setCurrentArticle(Article currentArticle) {
        this.currentArticle = currentArticle;
    }
}
